from machine import Pin
import time

class OnboardLed(object):
    def __init__(self):
        self.led = Pin("LED", Pin.OUT)
    def get(self):
        return self.led.value()
    def toggleLED(self):
        self.led.toggle()
    def turnOn(self):
        self.led.value(1)
    def turnOff(self):
        self.led.value(0)